import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    redirect:'/vue3/#/index',
  },
  {
    path: '/vue3/#/index',
    name: 'home',
    component: HomeView
  },
  {
    path: '/react18',
    component: () => import('../App.vue')
  },
  {
    path: '/vue2',
    component: () => import('../App.vue')
  },
  {
    path: '/vue3',
    component: () => import('../App.vue')
  }
]

const router = () => createRouter({
  history: createWebHistory(),
  routes
})

export default router
